/*
Jun 3, 2013
Door.java
Erich Hauck
 */
import javax.swing.*;
import java.awt.*;

public class Door
{
ImageIcon image;
Image door;
int x=0;
int y=0;
Rectangle doorBox;

Door()
{
   image = new ImageIcon("DoorD.png");
   door = image.getImage();
}

public Image getImage()
{
   return  door;
}

public void setX(int inX)
{
   x= inX;
}

public void setY(int inY)
{
   y = inY;
}

public int getX()
{
   return x;
}
public int getY()
{
   return y;
}
public Rectangle getBounds()
{
 doorBox = new Rectangle(x,y, 40, 40);
 return doorBox;
}

}
